/* 健康应用全局样式 */
@import './base.css';

/* 健康主题色彩系统 */
:root {
  /* 主色调 - 健康蓝 */
  --health-primary: #3498db;
  --health-primary-light: #64b5f6;
  --health-primary-dark: #2980b9;
  
  /* 辅助色 */
  --health-secondary: #2ecc71;
  --health-secondary-light: #58d68d;
  --health-secondary-dark: #27ae60;
  
  /* 警告色 */
  --health-warning: #f39c12;
  --health-warning-light: #f1c40f;
  --health-warning-dark: #e67e22;
  
  /* 危险色 */
  --health-danger: #e74c3c;
  --health-danger-light: #ec7063;
  --health-danger-dark: #c0392b;
  
  /* 中性色 */
  --health-text: #2c3e50;
  --health-text-secondary: #7f8c8d;
  --health-text-light: #95a5a6;
  --health-background: #f8f9fa;
  --health-surface: #ffffff;
  --health-border: #e1e8ed;
  
  /* 阴影 */
  --health-shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
  --health-shadow-md: 0 5px 15px rgba(0, 0, 0, 0.08);
  --health-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.12);
  
  /* 圆角 */
  --health-radius-sm: 8px;
  --health-radius-md: 12px;
  --health-radius-lg: 20px;
  
  /* 动画 */
  --health-transition-fast: 0.2s ease;
  --health-transition-normal: 0.3s ease;
  --health-transition-slow: 0.5s ease;
}

/* 全局布局 */
#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--health-background);
}

/* 卡片样式 */
.health-card {
  background-color: var(--health-surface);
  border-radius: var(--health-radius-md);
  box-shadow: var(--health-shadow-md);
  padding: 24px;
  transition: transform var(--health-transition-normal), box-shadow var(--health-transition-normal);
}

.health-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--health-shadow-lg);
}

/* 按钮样式 */
.health-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--health-radius-sm);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--health-transition-normal);
  outline: none;
}

.health-btn-primary {
  background-color: var(--health-primary);
  color: white;
}

.health-btn-primary:hover {
  background-color: var(--health-primary-dark);
  transform: translateY(-1px);
}

.health-btn-secondary {
  background-color: var(--health-secondary);
  color: white;
}

.health-btn-secondary:hover {
  background-color: var(--health-secondary-dark);
  transform: translateY(-1px);
}

.health-btn-outline {
  background-color: transparent;
  border: 2px solid var(--health-primary);
  color: var(--health-primary);
}

.health-btn-outline:hover {
  background-color: var(--health-primary);
  color: white;
}

/* 输入框样式 */
.health-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--health-border);
  border-radius: var(--health-radius-sm);
  font-size: 16px;
  transition: border-color var(--health-transition-normal);
  outline: none;
}

.health-input:focus {
  border-color: var(--health-primary);
}

/* 进度条样式 */
.health-progress {
  width: 100%;
  height: 8px;
  background-color: var(--health-border);
  border-radius: 4px;
  overflow: hidden;
}

.health-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--health-primary) 0%, var(--health-secondary) 100%);
  transition: width var(--health-transition-slow);
}

/* 动画效果 */
@keyframes health-fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes health-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.health-animate-fadeIn {
  animation: health-fadeIn 0.6s ease forwards;
}

.health-animate-pulse {
  animation: health-pulse 2s infinite;
}

/* 加载动画 */
.health-loader {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid var(--health-border);
  border-radius: 50%;
  border-top-color: var(--health-primary);
  animation: health-spin 1s ease-in-out infinite;
}

@keyframes health-spin {
  to {
    transform: rotate(360deg);
  }
}

/* 响应式工具类 */
@media (max-width: 768px) {
  .health-card {
    padding: 20px;
  }
  
  .health-btn {
    padding: 10px 20px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .health-card {
    padding: 16px;
    border-radius: var(--health-radius-sm);
  }
}
